<%= "shop_order_show.html" %>
<p>
  <b>User:</b>
  <%=h @order.user_id %>
</p>

<p>
  <b>商铺:</b>
  <%=h @order.shop.shop_name %>
</p>
<% for item in @items%>
  <p><%=h item.product.title %>X<%=h item.product.amount%></p>  
<% end%>
<p>
  <b>状态:</b>
  <%=h @order.status %>
</p>

<p>
  <b>商品总额:</b>
  <%=h @order.product_sum_price %>
</p>

<p>
  <b>运费:</b>
  <%=h @order.transport_id %>
</p>

<p>
  <b>邮递方式:</b>
  <%=h @order.transport_type %>
</p>

<p>
  <b>订单总额:</b>
  <%=h @order.order_price_sum %>
</p>

<%= link_to '返回',{:action=>"shop_order_list"} %>
<%= link_to "发货",{:action=>"shop_order_ps",:id=>@order.id}%>